<div class="title">Tags</div>
<?php 
    $tags = array();
    foreach ($t['tags'] as $pair) {
        list($tag, $weight) = $pair;
        /* @var $tag Tag */
        $tags[] = str_replace(array('{url}', '{tag}', '{weight}'), 
            array($ro->gen('tag', array('tag' => $tag)), $tag, $weight),
            '<a href="{url}" class="tag_{weight}">{tag}</a>');
    }
?>
<div class="tags-applet-view">
    <?php echo implode(' ', $tags); ?>
</div>
